package chapter02;

public class Test02_Car {
    String brand;
    String typeof;
    public void drive(){
        System.out.println(brand+"牌的汽车能被驾驶的很好");
    }

    public static void main(String[] args) {
        Test02_Car c = new Test02_Car();
        c.brand = "奔驰";
        c.typeof = "suv";
        c.drive();
        Person p1 = new Person();
        //protected权限可以在本包中访问
        p1.name = "李四";
        System.out.println(p1.name);
    }
}
